<?php
namespace app\admin\validate;

use think\Validate;

class Cate extends Validate
{
    protected $rule = [
        'catename'  =>  'require|max:30|unique:cate',
        'keywords'  =>  'require|max:25',
    ];
    protected $message  =   [
    'catename.require' => '栏目名称不能为空',
    'catename.unique' => '栏目名称不能重复',
    'catename.max' => '栏目名称不超过30位',
    'keywords.require' => '关键字不能为空',
    'keywords.max' => '关键字不超过150位',
];


}